<?php
	include('include/configs.inc.php');
	
	if(!empty($_POST['bien'])) {
		$sql = "INSERT INTO avis_bien VALUES('', '".$_POST['bien']."', '".$_SESSION['UID']."', '".$_POST['avis']."', '".$_POST['note']."')";
		
		$connect->query($sql);
	}
	
	header('Location: '.$_SERVER['HTTP_REFERER']);
?>